-
Notifications
You must be signed in to change notification settings - Fork 0
/
Year 53 - 100 Cubes on the Floor
263 lines (262 loc) · 3.25 KB
/
Year 53 - 100 Cubes on the Floor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
-- 7 Billion Humans (2145) --
-- 53: 100 Cubes on the Floor by @n05ucc4u --
if ne == wall and
e == wall:
step w
step w
step w
pickup w
if s == 0:
write 79
drop
step w
pickup w
write 78
mem1 = set 74
mem2 = set 75
mem3 = set 76
mem4 = set 77
else:
write 39
drop
step w
pickup w
write 38
mem1 = set 34
mem2 = set 35
mem3 = set 36
mem4 = set 37
endif
else:
if sw == worker:
step w
if n == nothing:
step w
pickup w
write 59
drop
step w
pickup w
write 58
mem1 = set 54
mem2 = set 55
mem3 = set 56
mem4 = set 57
else:
pickup w
write 89
drop
step w
pickup w
write 88
mem1 = set 84
mem2 = set 85
mem3 = set 86
mem4 = set 87
endif
else:
if w == nothing:
if nw == nothing:
step w
pickup w
write 69
drop
step w
pickup w
write 68
mem1 = set 64
mem2 = set 65
mem3 = set 66
mem4 = set 67
else:
step w
pickup w
write 29
drop
step w
pickup w
write 28
mem1 = set 24
mem2 = set 25
mem3 = set 26
mem4 = set 27
endif
else:
if nw == wall or
sw == wall:
pickup w
if n == wall:
write 9
mem1 = set 5
mem2 = set 6
mem3 = set 7
mem4 = set 8
jump a
endif
write 99
drop
step w
pickup w
write 98
drop
step w
pickup w
write 97
drop
step w
pickup w
write 96
drop
step w
pickup w
write 95
drop
step w
pickup w
write 94
mem1 = set 90
mem2 = set 91
mem3 = set 92
mem4 = set 93
else:
if sw == datacube:
pickup w
write 19
drop
step w
pickup w
write 18
drop
step w
pickup w
write 17
drop
step w
pickup w
write 16
drop
step w
pickup w
write 15
drop
step w
pickup w
write 14
mem1 = set 10
mem2 = set 11
mem3 = set 12
mem4 = set 13
else:
pickup w
write 49
drop
step w
pickup w
write 48
drop
step w
pickup w
write 47
drop
step w
pickup w
write 46
drop
step w
pickup w
write 45
drop
step w
pickup w
write 44
mem1 = set 40
mem2 = set 41
mem3 = set 42
mem4 = set 43
endif
endif
jump b
endif
endif
endif
a:
drop
step w
pickup w
write mem4
drop
step w
pickup w
write mem3
drop
step w
pickup w
write mem2
drop
step w
pickup w
write mem1
if mem1 > 34:
if mem1 > 64:
if mem1 == 74:
mem1 = set 70
mem2 = set 71
mem3 = set 72
mem4 = set 73
else:
mem1 = set 80
mem2 = set 81
mem3 = set 82
mem4 = set 83
endif
else:
if mem1 == 54:
mem1 = set 50
mem2 = set 51
mem3 = set 52
mem4 = set 53
else:
mem1 = set 60
mem2 = set 61
mem3 = set 62
mem4 = set 63
endif
endif
else:
if mem1 == 5:
mem1 = set 1
mem2 = set 2
mem3 = set 3
mem4 = set 4
else:
if mem1 == 24:
mem1 = set 20
mem2 = set 21
mem3 = set 22
mem4 = set 23
else:
mem1 = set 30
mem2 = set 31
mem3 = set 32
mem4 = set 33
endif
endif
endif
b:
drop
step w
pickup w
write mem4
drop
step w
pickup w
write mem3
drop
step w
pickup w
write mem2
drop
step w
pickup w
write mem1
drop